package com.meitianhui.convenitenbuy.widget.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.meitianhui.convenitenbuy.R;

/**
 * 兑换成功 Dialog 购买成功Dialog
 */
public class ReceiveSuccessDialog extends Dialog implements android.view.View.OnClickListener{

    private Context mContext;
    private TextView txt_succ_content1;
    private TextView txt_succ_content2;
    private String txt1;
    public ReceiveSuccessDialog(Context context) {
        super(context);
        this.mContext = context;
    }

    public ReceiveSuccessDialog(Context context, int themeResId, String title1) {
        super(context, themeResId);
        mContext = context;
        this.txt1 = title1;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_receive_success);
        setCanceledOnTouchOutside(true);
        txt_succ_content1 = (TextView)findViewById(R.id.txt_succ_content1);
        txt_succ_content2 = (TextView)findViewById(R.id.txt_succ_content2);
        txt_succ_content1.setText(txt1);
    }

    @Override
    public void onClick(View v) {

    }
}
